﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace MethodWorx.CMS.Workflow.SetContentItemProperty
{
    [Serializable]
    public class SetContentItemPropertyConfiguration : IWorkflowConfiguration
    {
        [Required]
        public string ContentItem { get; set; }

        [Required]
        public string ContentTemplate { get; set; }

        [Required]
        public string Property { get; set; }

        [Required]
        public string Value { get; set; }

        public string GetDescriptionSummary()
        {
            return this.ContentItem + "." + this.Property + " = " + this.Value;
        }
    }
}
